/*
 * This file is part of aCSV.
 *
 * aCSV is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * aCSV is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with aCSV.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.apelle.acsv.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 *
 * @author
 * @version $Id$
 */
@Target(ElementType.METHOD)
@Retention(value = RetentionPolicy.RUNTIME)
public @interface CSVCase {
    String description() default "";

    String regexp() default ".*";

    MatchType matchType() default MatchType.LINE;

    int fieldToMatch() default -1;

    int caseNum() default -1;

    boolean defaultCase() default false;

    OutputType type() default OutputType.SYSTEM_OUT;

    String file() default "";


    public enum OutputType {
        SYSTEM_OUT,
        SYSTEM_ERR,
        FILE
    }

    public enum MatchType {
        LINE,
        FIELD

    }

}
